package lab02.test21;

public class Test {
    public static void main(String[] args) {
        String name="liyanhan";
        int i,j,count=0;
        float a,b,n;
        for(i=0;i<name.length();i++){
            j=name.charAt(i);
            if(name.charAt(i)=='n'){
                 count++;
            }
        }
        System.out.println(count);
        a=count;
        b=name.length();
        n=a/b;
        System.out.println(n);

    }
}
